<?php


/**
 * Notes:
 * PROJECT_NAME : ERP v1.8 重构erp
 * User: 夏鱼儿<397072174@qq.com>
 * Date: 2024/3/14
 * Time: 9:37
 */

namespace app\api\model;

use app\admin\model\BaseModel;
use think\model\relation\HasMany;

class User extends BaseModel
{

    public function orders(): HasMany
    {
        return $this->hasMany(Order::class);
    }

    public function orderDetails(): HasMany
    {
        return $this->hasMany(OrderDetail::class);
    }
}